export function get_image_list(success_fn, fail_fn) {
    return uni.request({
        url: "http://localhost:8888/image/getList",
        method: "GET",
        success: res => {
            success_fn(res.data)
        },
        fail: fail_fn
    })
}

export function get_image_list_by_type(type, success_fn, fail_fn) {
    return uni.request({
        url: "http://localhost:8888/image/queryByIType?itype=" + type,
        method: "GET",
        success: res => {
            success_fn(res.data);
        },
        fail: fail_fn
    })
}
